package com.ruoyi.basicData.ruleSetting.mapper;

import java.util.List;
import com.ruoyi.basicData.ruleSetting.domain.AccessorySupplierRelevance;
import org.apache.ibatis.annotations.Param;

/**
 * 配件ID和供应商关联Mapper接口
 * 
 * @author YiYuan
 * @date 2024-01-23
 */
public interface AccessorySupplierRelevanceMapper 
{
    /**
     * 查询配件ID和供应商关联
     * 
     * @param id 配件ID和供应商关联主键
     * @return 配件ID和供应商关联
     */
    public AccessorySupplierRelevance selectAccessorySupplierRelevanceById(Long id);

    /**
     * 查询配件ID和供应商关联列表
     * 
     * @param accessorySupplierRelevance 配件ID和供应商关联
     * @return 配件ID和供应商关联集合
     */
    public List<AccessorySupplierRelevance> selectAccessorySupplierRelevanceList(AccessorySupplierRelevance accessorySupplierRelevance);

    /**
     * 新增配件ID和供应商关联
     * 
     * @param accessorySupplierRelevance 配件ID和供应商关联
     * @return 结果
     */
    public int insertAccessorySupplierRelevance(AccessorySupplierRelevance accessorySupplierRelevance);

    /**
     * 修改配件ID和供应商关联
     * 
     * @param accessorySupplierRelevance 配件ID和供应商关联
     * @return 结果
     */
    public int updateAccessorySupplierRelevance(AccessorySupplierRelevance accessorySupplierRelevance);

    /**
     * 删除配件ID和供应商关联
     * 
     * @param id 配件ID和供应商关联主键
     * @return 结果
     */
    public int deleteAccessorySupplierRelevanceById(Long id);

    /**
     * 批量删除配件ID和供应商关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAccessorySupplierRelevanceByIds(Long[] ids);

    boolean hasSupplier(@Param("accessoryType") String accessoryType, @Param("str") String str);
}
